package com.charles.springcloud.alibaba.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.charles.common.CommonResult;

/**
 * @Author: 风中灵劲草
 * @Date: 2021/08/26/17:40
 * @Description:
 */
public class CustomerBlockHandler {
    public static CommonResult handlerException(BlockException exception) {
        return new CommonResult(444, "按客户自定义" + exception.getClass().getCanonicalName() + "global handlerException....1");
    }

    public static CommonResult handlerException2(BlockException exception) {
        return new CommonResult(444, "按客户自定义" + exception.getClass().getCanonicalName() + "global handlerException....2");
    }
}
